package com.daJiao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.daJiao.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>Title:      SysAgreement. </p>
 * <p>Description 协议签署表 </p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company:    医百科技有限公司 </p>
 *
 * @author         yangwensheng@100doc.com.cn
 * @since      2021-03-25 10:08:31
 */

@Builder
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "SysAddress")
@TableName("sys_agreement")
public class SysAgreement extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 签署编码
	 */
	@ApiModelProperty(value = "签署编码")
	private String signCode;
	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	private String userId;
	/**
	 * 用户类型 1：患者 2：用户
	 */
	@ApiModelProperty(value = "用户类型 1：患者 2：用户")
	private Integer userType;
	/**
	 * 签署时间
	 */
	@ApiModelProperty(value = "签署时间")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date signTime;

	/**
	 * 文件上传后返回的url
	 */
	@ApiModelProperty(value = "文件上传后返回的url")
	private String fileUrl;
}
